File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1- __version__ = (0 , 0 , 4 )
1+ __version__ = (0 , 0 , 5 )
Original file line number Diff line number Diff line change @@ -196,6 +196,8 @@ def translate_name(m_Name: str, **kwargs):
196196 "continue" ,
197197 "pass" ,
198198 "yield" ,
199+ "True" ,
200+ "False" ,
199201 }
200202 if m_Name in RESERVED_NAMES :
201203 m_Name = "_" + m_Name
@@ -339,7 +341,7 @@ def __encoder(obj):
339341 emit_line (f"@UTTCGen('{ fullname } ', { clazz_typetree } )" )
340342 if lvl1 :
341343 parent = translate_type (fields [0 ].m_Type , strip = True , fallback = False )
342- emit_line (f"class { clazz } ({ parent } ):" )
344+ emit_line (f"class { translate_name ( clazz ) } ({ translate_name ( parent ) } ):" )
343345 if dp [parent ] == - 1 :
344346 # Reuse parent's fields with best possible effort
345347 if pa_dep1 := getattr (UnityBuiltin , parent , None ):
You can’t perform that action at this time.
0 commit comments