mirror of
https://github.com/godotengine/godot
synced 2024-09-04 21:28:28 +00:00
Fix MeshInstance2D rect
This commit is contained in:
parent
9c9ec63e1d
commit
1a347e9cf3
|
@ -96,6 +96,10 @@ Rect2 MeshInstance2D::_edit_get_rect() const {
|
|||
|
||||
return Node2D::_edit_get_rect();
|
||||
}
|
||||
|
||||
bool MeshInstance2D::_edit_use_rect() const {
|
||||
return mesh.is_valid();
|
||||
}
|
||||
#endif
|
||||
|
||||
MeshInstance2D::MeshInstance2D() {
|
||||
|
|
|
@ -48,6 +48,7 @@ protected:
|
|||
public:
|
||||
#ifdef TOOLS_ENABLED
|
||||
virtual Rect2 _edit_get_rect() const override;
|
||||
virtual bool _edit_use_rect() const override;
|
||||
#endif
|
||||
|
||||
void set_mesh(const Ref<Mesh> &p_mesh);
|
||||
|
|
Loading…
Reference in a new issue