{"action":"created","issue":{"url":"https://api.github.com/repos/lexxmark/QtnProperty/issues/12","repository_url":"https://api.github.com/repos/lexxmark/QtnProperty","labels_url":"https://api.github.com/repos/lexxmark/QtnProperty/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/lexxmark/QtnProperty/issues/12/comments","events_url":"https://api.github.com/repos/lexxmark/QtnProperty/issues/12/events","html_url":"https://github.com/lexxmark/QtnProperty/issues/12","id":133583110,"number":12,"title":"serializable properties should have unique ids","user":{"login":"kmkolasinski","id":10145864,"avatar_url":"https://avatars.githubusercontent.com/u/10145864?v=3","gravatar_id":"","url":"https://api.github.com/users/kmkolasinski","html_url":"https://github.com/kmkolasinski","followers_url":"https://api.github.com/users/kmkolasinski/followers","following_url":"https://api.github.com/users/kmkolasinski/following{/other_user}","gists_url":"https://api.github.com/users/kmkolasinski/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkolasinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkolasinski/subscriptions","organizations_url":"https://api.github.com/users/kmkolasinski/orgs","repos_url":"https://api.github.com/users/kmkolasinski/repos","events_url":"https://api.github.com/users/kmkolasinski/events{/privacy}","received_events_url":"https://api.github.com/users/kmkolasinski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2016-02-14T21:40:51Z","updated_at":"2016-04-09T20:41:30Z","closed_at":null,"body":"Hi, at first I would like to thank you for all the help you done to integrate Qtn in AwesomeBump project. I slowly introduce changes in GUI and everything works perfect. \r\nHowever today I've tried to implement saving feature which is done in following way. I have multiple propertysets which are separate, but I want to keep all the data in one file. So to do that I decided to make another property set which I will use to keep all the data in one place:\r\n```\r\nproperty_set AwesomeBump{\r\n    extern property_set FormImageProp Diffuse{}\r\n    extern property_set FormImageProp Specular{}\r\n}\r\n```\r\nIn future I'm going to add more properties to it. Then during save I do\r\n```\r\n    abSettings->Diffuse.copyValues(diffuseImageProp->imageProp.properties);\r\n    abSettings->Specular.copyValues(specularImageProp->imageProp.properties);  \r\n    QFile file( \"test.dat\" );\r\n    QDataStream stream( &file );\r\n    abSettings->save(stream);\r\n```\r\nWhich causes this assert:\r\n\r\n> ASSERT: \"false && \"serializable properties should have unique ids\"\" in file ../AwesomeBump/Sources/utils/QtnProperty/Core/PropertySet.cpp, line 332\r\n\r\nHowever I tried to use: \r\n```\r\nQTextStream stream(&file);\r\nQString data;\r\nabSettings->toStr(data);\r\nstream << data;\r\n```\r\nBut only the first property FormImageProp Diffuse was written into file. Do you know how to fix it?"},"comment":{"url":"https://api.github.com/repos/lexxmark/QtnProperty/issues/comments/207850442","html_url":"https://github.com/lexxmark/QtnProperty/issues/12#issuecomment-207850442","issue_url":"https://api.github.com/repos/lexxmark/QtnProperty/issues/12","id":207850442,"user":{"login":"kmkolasinski","id":10145864,"avatar_url":"https://avatars.githubusercontent.com/u/10145864?v=3","gravatar_id":"","url":"https://api.github.com/users/kmkolasinski","html_url":"https://github.com/kmkolasinski","followers_url":"https://api.github.com/users/kmkolasinski/followers","following_url":"https://api.github.com/users/kmkolasinski/following{/other_user}","gists_url":"https://api.github.com/users/kmkolasinski/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkolasinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkolasinski/subscriptions","organizations_url":"https://api.github.com/users/kmkolasinski/orgs","repos_url":"https://api.github.com/users/kmkolasinski/repos","events_url":"https://api.github.com/users/kmkolasinski/events{/privacy}","received_events_url":"https://api.github.com/users/kmkolasinski/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T20:41:29Z","updated_at":"2016-04-09T20:41:29Z","body":"Hi thanks, the FocalDepth is in another QtnProperty set responsible for 3D rendering: it is in the Bin/Conifg/settings3D.dat file. The content of this file is following:\r\n\r\n```\r\nDOF.EnableEffect = True\r\nDOF.FocalLength = 25\r\nDOF.FocalDepth = 10\r\nDOF.FocalStop = 140\r\nDOF.NoSamples = 4\r\nDOF.NoRings = 7\r\nDOF.Noise = False\r\nDOF.Coc = 0.03\r\nDOF.Threshold = 0.25\r\nDOF.Gain = 1\r\nDOF.BokehBias = 0.25\r\nDOF.BokehFringe = 0.7\r\nDOF.DitherAmount = 0.0001\r\nBloom.EnableEffect = True\r\nBloom.WeightA = 0.25\r\nBloom.WeightB = 0.25\r\nBloom.WeightC = 0.25\r\nBloom.WeightD = 0.25\r\nBloom.Vignette = 0.4\r\nBloom.VignetteAtt = 0.8\r\nFlares.EnableEffect = True\r\nFlares.NoSamples = 8\r\nFlares.Dispersal = 0.25\r\nFlares.HaloWidth = 0.5\r\nFlares.Distortion = 1\r\nFlares.weightLF = 10\r\nToneMapping.EnableEffect = True\r\nToneMapping.Delta = 1\r\nToneMapping.Scale = 0.5\r\nToneMapping.LumMaxWhite = 1\r\nToneMapping.GammaCorrection = 0.6\r\nToneMapping.BlendingWeight = 0.8\r\nParsedShader.MaxParams = 20\r\nParsedShader.LastShaderIndex = 0\r\nParsedShader.fParam1 = 0\r\nParsedShader.fParam2 = 0.4\r\nParsedShader.fParam3 = 3\r\nParsedShader.fParam4 = 50\r\nParsedShader.fParam5 = 50\r\nParsedShader.fParam6 = 50\r\nParsedShader.fParam7 = 50\r\nParsedShader.fParam8 = 50\r\nParsedShader.fParam9 = 50\r\nParsedShader.fParam10 = 50\r\nParsedShader.fParam11 = 50\r\nParsedShader.fParam12 = 50\r\nParsedShader.fParam13 = 50\r\nParsedShader.fParam14 = 50\r\nParsedShader.fParam15 = 50\r\nParsedShader.fParam16 = 50\r\nParsedShader.fParam17 = 50\r\nParsedShader.fParam18 = 50\r\nParsedShader.fParam19 = 50\r\nParsedShader.fParam20 = 50\r\n```\r\nThis file is used in Dialog3DGeneralSettings.cpp file in Source/properties folder. I understand that the problem is during file parsing, but it was working few commits ago. \r\n\r\n\r\n"}}