mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-22 11:50:53 +00:00
Compare commits
1 Commits
1180a31838
...
94ee8b4520
Author | SHA1 | Date | |
---|---|---|---|
|
94ee8b4520 |
@ -10,15 +10,15 @@ conversion_tables = {
|
|||||||
|
|
||||||
"glam::Vec2": lambda value: "Vec2(x:"+str(value[0])+ ", y:"+str(value[1])+")",
|
"glam::Vec2": lambda value: "Vec2(x:"+str(value[0])+ ", y:"+str(value[1])+")",
|
||||||
"glam::DVec2": lambda value: "DVec2(x:"+str(value[0])+ ", y:"+str(value[1])+")",
|
"glam::DVec2": lambda value: "DVec2(x:"+str(value[0])+ ", y:"+str(value[1])+")",
|
||||||
"glam::UVec2": lambda value: "UVec2(x:"+str(int(value[0]))+ ", y:"+str(int(value[1]))+")",
|
"glam::UVec2": lambda value: "UVec2(x:"+str(value[0])+ ", y:"+str(value[1])+")",
|
||||||
|
|
||||||
"glam::Vec3": lambda value: "Vec3(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+")",
|
"glam::Vec3": lambda value: "Vec3(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+")",
|
||||||
"glam::Vec3A": lambda value: "Vec3A(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+")",
|
"glam::Vec3A": lambda value: "Vec3A(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+")",
|
||||||
"glam::UVec3": lambda value: "UVec3(x:"+str(int(value[0]))+ ", y:"+str(int(value[1]))+ ", z:"+str(int(value[2]))+")",
|
"glam::UVec3": lambda value: "UVec3(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+")",
|
||||||
|
|
||||||
"glam::Vec4": lambda value: "Vec4(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+ ", w:"+str(value[3])+")",
|
"glam::Vec4": lambda value: "Vec4(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+ ", w:"+str(value[3])+")",
|
||||||
"glam::DVec4": lambda value: "DVec4(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+ ", w:"+str(value[3])+")",
|
"glam::DVec4": lambda value: "DVec4(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+ ", w:"+str(value[3])+")",
|
||||||
"glam::UVec4": lambda value: "UVec4(x:"+str(int(value[0]))+ ", y:"+str(int(value[1]))+ ", z:"+str(int(value[2]))+ ", w:"+str(int(value[3]))+")",
|
"glam::UVec4": lambda value: "UVec4(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+ ", w:"+str(value[3])+")",
|
||||||
|
|
||||||
"glam::Quat": lambda value: "Quat(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+ ", w:"+str(value[3])+")",
|
"glam::Quat": lambda value: "Quat(x:"+str(value[0])+ ", y:"+str(value[1])+ ", z:"+str(value[2])+ ", w:"+str(value[3])+")",
|
||||||
|
|
||||||
|
@ -65,17 +65,17 @@ class ComponentsRegistry(PropertyGroup):
|
|||||||
|
|
||||||
"glam::Vec2": {"type": FloatVectorProperty, "presets": dict(size = 2) },
|
"glam::Vec2": {"type": FloatVectorProperty, "presets": dict(size = 2) },
|
||||||
"glam::DVec2": {"type": FloatVectorProperty, "presets": dict(size = 2) },
|
"glam::DVec2": {"type": FloatVectorProperty, "presets": dict(size = 2) },
|
||||||
"glam::UVec2": {"type": IntVectorProperty, "presets": {"size": 2, "min": 0} },
|
"glam::UVec2": {"type": FloatVectorProperty, "presets": dict(size = 2) },
|
||||||
|
|
||||||
"glam::Vec3": {"type": FloatVectorProperty, "presets": {"size":3} },
|
"glam::Vec3": {"type": FloatVectorProperty, "presets": {"size":3} },
|
||||||
"glam::Vec3A":{"type": FloatVectorProperty, "presets": {"size":3} },
|
"glam::Vec3A":{"type": FloatVectorProperty, "presets": {"size":3} },
|
||||||
"glam::DVec3":{"type": FloatVectorProperty, "presets": {"size":3} },
|
"glam::DVec3":{"type": FloatVectorProperty, "presets": {"size":3} },
|
||||||
"glam::UVec3":{"type": IntVectorProperty, "presets": {"size":3, "min":0} },
|
"glam::UVec3":{"type": FloatVectorProperty, "presets": {"size":3} },
|
||||||
|
|
||||||
"glam::Vec4": {"type": FloatVectorProperty, "presets": {"size":4} },
|
"glam::Vec4": {"type": FloatVectorProperty, "presets": {"size":4} },
|
||||||
"glam::Vec4A": {"type": FloatVectorProperty, "presets": {"size":4} },
|
"glam::Vec4A": {"type": FloatVectorProperty, "presets": {"size":4} },
|
||||||
"glam::DVec4": {"type": FloatVectorProperty, "presets": {"size":4} },
|
"glam::DVec4": {"type": FloatVectorProperty, "presets": {"size":4} },
|
||||||
"glam::UVec4":{"type": IntVectorProperty, "presets": {"size":4, "min":0} },
|
"glam::UVec4":{"type": FloatVectorProperty, "presets": {"size":4, "min":0.0} },
|
||||||
|
|
||||||
"glam::Quat": {"type": FloatVectorProperty, "presets": {"size":4} },
|
"glam::Quat": {"type": FloatVectorProperty, "presets": {"size":4} },
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user