@@ -489,7 +489,7 @@ pace.AddTool(L"Convert group of models to Expression 2 holograms", function(part
489489 local str_ref =
490490 [[
491491
492- I++, HN++, HT[HN,table] = table(I, Base, Base, 0, POSITION, ANGLES, SCALE, MODEL, MATERIAL, vec4(COLOR, ALPHA), SKIN)
492+ I++, HN++, HT[HN,table] = table(I, Base, Base, 0, POSITION, ANGLES, SCALE, MODEL, MATERIAL, vec4(COLOR, ALPHA), SKIN, INVERT )
493493 ]]
494494
495495 local str_header =
@@ -513,7 +513,7 @@ if (first() | dupefinished()) {
513513 Indices = 1
514514
515515 #- Data structure
516- #- HN++, HT[HN, table] = table(Index, Local Entity (Entity:toWorld()), Parent Entity, ScaleType (Default 0), Pos, Ang, Scale, Model, Material, Color, Skin)
516+ #- HN++, HT[HN, table] = table(Index, Local Entity (Entity:toWorld()), Parent Entity, ScaleType (Default 0), Pos, Ang, Scale, Model, Material, Color, Skin, Invert )
517517 #- CN++, CT[CN, table] = table(Index, Clip Index, Pos, Ang)
518518
519519 #- Editing holograms
@@ -556,6 +556,7 @@ if (first() | dupefinished()) {
556556 holoMaterial(Index, This[9, string])
557557 holoColor(Index, This[10, vector4])
558558 holoSkin(Index, This[11, number])
559+ holoInvertModel(Index, This[12, number])
559560 }
560561
561562 if (ToggleShading) { holoDisableShading(Index, 1) }
@@ -675,6 +676,7 @@ elseif (CoreStatus == "RunThisCode") {
675676 MATERIAL = (" %q" ):format (part :GetMaterial ()),
676677 MODEL = (" %q" ):format (part :GetModel ()),
677678 SKIN = part .GetSkin and part :GetSkin () or " 0" ,
679+ INVERT = part :GetInvert () and " 1" or " 0" ,
678680 PARENT = " entity()"
679681 })
680682
0 commit comments