parent
0dcf1e3a45
commit
f0dabe4ac5
2 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,10 @@ Rect2 MeshInstance2D::_edit_get_rect() const {
|
||||||
|
|
||||||
return Node2D::_edit_get_rect();
|
return Node2D::_edit_get_rect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool MeshInstance2D::_edit_use_rect() const {
|
||||||
|
return mesh.is_valid();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
MeshInstance2D::MeshInstance2D() {
|
MeshInstance2D::MeshInstance2D() {
|
||||||
|
|
|
@ -48,6 +48,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
virtual Rect2 _edit_get_rect() const;
|
virtual Rect2 _edit_get_rect() const;
|
||||||
|
virtual bool _edit_use_rect() const;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void set_mesh(const Ref<Mesh> &p_mesh);
|
void set_mesh(const Ref<Mesh> &p_mesh);
|
||||||
|
|
Loading…
Reference in a new issue