-
Notifications
You must be signed in to change notification settings - Fork 11
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
Duplication problem #1
Comments
From a cursory glance at the code, I see you are using Surface tool, and I don't see any |
@mrjustaguy This is unlikely to solve the problem, especially since SurfceTool also has a "clear" method |
What happens is that editor copies all child nodes (trunk and leash nodes are just invisible to editor) but you create nodes on constructor again.
Also you need to expose MeshInstances3D to editor because user might want and need to use them. (For example when he well be creating custom culling system, or he might want to save mesh to disk because mesh instance allows that end etc.) Also I don't think you need parent as node3d. Might be better to inherit it from MeshInstance3d and to not create one more node. |
@RonYanDaik I have made the MeshInstance3D available to the editor using
and when we open the demo the MeshInstance3D are available to the editor, but when we create a new tree in the editor they are not available to the editor until we reload the project. Also |
I noticed a problem when duplicating a Tree3D node using Ctrl+D: if we change any leaf or branch value, we see that the old mesh of the duplicate node remains and it looks like one tree is overlaid on top of another.
This multi-level tree disappears after the project is restarted.
I don't know how to solve this problem yet, if anyone has any ideas, I'd be glad for your help.
The text was updated successfully, but these errors were encountered: