Fix physics particle undo

This commit is contained in:
Lubos Lenco
2022-04-08 10:30:55 +02:00
parent 921a7b367f
commit 78f9c52640
+2 -1
View File
@@ -439,6 +439,7 @@ class UISidebar {
Context.ddirty = 2;
Context.rdirty = 2;
if (mouse.started()) {
History.pushUndo = true;
Scene.active.spawnObject(".Sphere", null, function(o: Object) {
iron.data.Data.getMaterial("Scene", ".Gizmo", function(md: MaterialData) {
var mo: MeshObject = cast o;
@@ -581,7 +582,7 @@ class UISidebar {
#if arm_physics
if (Context.particlePhysics) {
if (Context.tool == ToolParticle && Context.particlePhysics) {
down = false;
}
#end