"Cannot get CSGBrush": is this a bug?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By S Arrowsmith

Just to check whether this is a bug or me doing something stupid:

I have a CSG shape which is periodically made to vanish by a script setting its visible property false. This works, but generates an error:

E 0:00:02.185   _update_shape: Cannot get CSGBrush.
  <C++ Error>   Condition "!n" is true.
  <C++ Source>  modules/csg/csg_shape.cpp:280 @ _update_shape()

If the shape is a CSGContainer containing the actual geometry, the error happens with every visible = false, otherwise just once on the first call.