forked from LeenkxTeam/LNXSDK
Repe [T3DU] and Moises Jpelaez updates
This commit is contained in:
@ -380,7 +380,7 @@ def get_haxe_path():
|
||||
if get_os() == 'win':
|
||||
return get_kha_path() + '/Tools/windows_x64/haxe.exe'
|
||||
elif get_os() == 'mac':
|
||||
return get_kha_path() + '/Tools/macos/haxe'
|
||||
return get_kha_path() + '/Tools/macos_x64/haxe'
|
||||
else:
|
||||
return get_kha_path() + '/Tools/linux_x64/haxe'
|
||||
|
||||
@ -484,7 +484,7 @@ def fetch_script_props(filename: str):
|
||||
|
||||
# Property type is annotated
|
||||
if p_type is not None:
|
||||
if p_type.startswith("iron.object.") or p_type == "iron.data.SceneFormat.TSceneFormat":
|
||||
if p_type.startswith("iron.object."):
|
||||
p_type = p_type[12:]
|
||||
elif p_type.startswith("iron.math."):
|
||||
p_type = p_type[10:]
|
||||
@ -562,7 +562,7 @@ def get_type_default_value(prop_type: str):
|
||||
if prop_type == "Float":
|
||||
return 0.0
|
||||
if prop_type == "String" or prop_type in (
|
||||
"Object", "CameraObject", "LightObject", "MeshObject", "SpeakerObject", "TSceneFormat"):
|
||||
"Object", "CameraObject", "LightObject", "MeshObject", "SpeakerObject"):
|
||||
return ""
|
||||
if prop_type == "Bool":
|
||||
return False
|
||||
@ -804,13 +804,13 @@ def get_haxe_json_string(d: dict) -> str:
|
||||
return s
|
||||
|
||||
def asset_name(bdata):
|
||||
if bdata == None:
|
||||
return None
|
||||
s = bdata.name
|
||||
# Append library name if linked
|
||||
if bdata.library is not None:
|
||||
s += '_' + bdata.library.name
|
||||
return s
|
||||
"""Get the qualified asset name, with library suffix for linked data.
|
||||
|
||||
For local assets, returns just the name.
|
||||
For linked assets, returns 'name_libraryname' to ensure uniqueness.
|
||||
"""
|
||||
import lnx.linked_utils as linked_utils
|
||||
return linked_utils.asset_name(bdata)
|
||||
|
||||
def asset_path(s):
|
||||
"""Remove leading '//'"""
|
||||
@ -868,7 +868,7 @@ def check_blender_version(op: bpy.types.Operator):
|
||||
"""Check whether the Blender version is supported by Leenkx,
|
||||
if not, report in UI.
|
||||
"""
|
||||
if bpy.app.version[:2] not in [(4, 4), (4, 2), (3, 6), (3, 3)]:
|
||||
if bpy.app.version[:2] not in [(4, 5), (4, 4), (4, 2), (3, 6), (3, 3)]:
|
||||
op.report({'INFO'}, 'INFO: For Leenkx to work correctly, use a Blender LTS version')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user