Removed custom rotation and fixed placeholder naming (Import from blender had _ in the name
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class DecorationHandler
|
||||
@@ -26,8 +27,6 @@ public class DecorationHandler
|
||||
|
||||
decoration.Position = placeholder.pos;
|
||||
|
||||
decoration.Rotate(Vector3.Up, Mathf.DegToRad(-90));
|
||||
|
||||
if (key == "light")
|
||||
{
|
||||
decoration.AddChild(new OmniLight3D()
|
||||
|
||||
@@ -6,7 +6,7 @@ public class Placeholder
|
||||
public Vector3 pos;
|
||||
|
||||
public Placeholder(string name, Vector3 pos){
|
||||
this.name = name;
|
||||
this.name = name.Split("_")[0];
|
||||
this.pos = pos;
|
||||
GD.Print($"Generated placeholder {this.name}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user