Dreikblack Posted March 19 Share Posted March 19 1. At start.ultra map copy a player. 2. Change a value in copied entity's ThirPersonControls. 3. First entity have same value now Quote Link to comment Share on other sites More sharing options...
Josh Posted March 22 Share Posted March 22 It seems this will happen with any model, with any component, but does not occur with brushes... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted March 23 Share Posted March 23 I think internally some of the sub-tables are sharing the same STL map. No idea why brushes don't also exhibit this behavior. I can either change the way the map is stored in the table, which could cause other problems possibly, or implement a table copy mechanism. Let me think about this... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted March 23 Share Posted March 23 I guess the way it is working right now is actually correct, according to the Lua way. In Lua, if you assign a table to a new variable, it will still contain the same subtables. So a table copy feature would be needed to sort this out. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Solution Josh Posted March 23 Solution Share Posted March 23 I was able to solve this problem simply by changing this code: entity->exportproperties = exportproperties; entity->importproperties = importproperties; To this: entity->exportproperties = exportproperties.copy(); entity->importproperties = importproperties.copy(); The fix will be in the next build that goes up. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.