Skip to content

Commit

Permalink
Allowed to disable debug color
Browse files Browse the repository at this point in the history
  • Loading branch information
TothBenoit committed May 6, 2024
1 parent d408abf commit abd44e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hrt/prefab/l3d/Polygon.hx
Expand Up @@ -30,7 +30,7 @@ class Polygon extends Object3D {
public var editor : hide.prefab.PolygonEditor;
@:s public var gridSize:Float = 1;
public var cachedPrim : h3d.prim.Polygon;
public var hasDebugColor : Bool = true;
@:s public var hasDebugColor : Bool = true;
var prevScale = [1.0, 1.0];
#end

Expand Down Expand Up @@ -471,7 +471,10 @@ class Polygon extends Object3D {

ctx.properties.add( new hide.Element('
<div class="group" name="Params">
<dl><dt>Color</dt><dd><input type="color" alpha="true" field="color"/></dd> </dl>
<dl>
<dt>Debug</dt><dd><input type="checkbox" field="hasDebugColor"/></dd>
<dt>Color</dt><dd><input type="color" alpha="true" field="color"/></dd>
</dl>
</div>'), this, function(pname) { ctx.onChange(this, pname); });

updateProps();
Expand Down

0 comments on commit abd44e7

Please sign in to comment.