Skip to content

Commit

Permalink
Fix Issue #31 'Bad looking orange selection's bounding box when using…
Browse files Browse the repository at this point in the history
… the brush'
  • Loading branch information
dreadpon committed Nov 18, 2023
1 parent 4d96dc7 commit 9a4c89f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/dreadpon.spatial_gardener/gardener/painter.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var _cached_camera: Camera3D = null
const sphere_brush_material = preload("../shaders/shm_sphere_brush.tres")
const circle_brush_material = preload("../shaders/shm_circle_brush.tres")
var paint_brush_node:MeshInstance3D = null
var detached_paint_brush_container:Node = null

# Temporary variables to store current quick prop edit state
var brush_prop_edit_flag = BrushPropEditFlag.NONE
Expand Down Expand Up @@ -86,7 +87,10 @@ func _init(_owned_spatial):
paint_brush_node.name = "active_brush"
set_brush_mesh()

owned_spatial.add_child(paint_brush_node)
#owned_spatial.add_child(paint_brush_node)
detached_paint_brush_container = Node.new()
owned_spatial.add_child(detached_paint_brush_container)
detached_paint_brush_container.add_child(paint_brush_node)
set_can_draw(false)


Expand Down

0 comments on commit 9a4c89f

Please sign in to comment.