-
-
Notifications
You must be signed in to change notification settings - Fork 90
When editing a model that's inside a prefab, the tool adds new brushes to the open scene instead of the prefab #321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Unable to reproduce in 2019 LTS, 2021 LTS. @robclouth please could you provide the version you are on + video or project with replication. Otherwise I recommend this issue is closed. |
I'm having the same issue. Here's a video of it "in action" : 2022-07-08.05-02-49.mp4I'm using Unity 2021.3.3 and Realtime CSG 1.57.2 via Package Manager git URL. |
That's exactly it |
I've traced the problem to I'm not yet sure how |
Once I comment out this block inside of
...adding brushes now work as expected in prefab isolation mode, and also works just fine in scene mode, as long as there isn't another (non-prefab) Model object, in which case it seems to default to that with no problem. So, fixed? But... the comment in this code block implies that there's some reason we actually wouldn't want to do this. I can't find any downsides, but I've only been testing it for a few minutes. 😂 I can do a PR for this, assuming it doesn't brake something else that I'm ignorant to. Let me know. |
Out of curiosity, how is it working now? Any side effects? You're more than welcome to submit a PR to this branch of my own fork, so it can be included in #349 |
Commenting out either or both of the As a workaround, if I first add an empty CSG Model to the prefab and then start generating brushes, the brushes are created within the prefab instead of the scene. In case the root of the issue does involve |
When editing a model that's inside a prefab, the tool adds new brushes to the open scene instead of the prefab. It seems to "remember" to add to the prefab if you edit a brush then go back to generate, but then it will forget it again and you have to do the edit trick again. Any ideas?
The text was updated successfully, but these errors were encountered: