mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-24 16:34:24 +01:00
Also handle NOTIFICATION_PAINT_NODE_RESIZED in PaintVisualGrid and PaintCanvasBackground. Note that they won't yet get that notification.
This commit is contained in:
parent
50cf64b7f1
commit
cebc26f3ce
@ -17,7 +17,6 @@ public:
|
||||
NOTIFICATION_PAINT_PROJECT_POST_SAVE = 2502,
|
||||
};
|
||||
|
||||
|
||||
Vector2i get_size();
|
||||
void set_size(const Vector2i &size);
|
||||
|
||||
|
@ -81,7 +81,8 @@ PaintCanvasBackground::~PaintCanvasBackground() {
|
||||
|
||||
void PaintCanvasBackground::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case PaintNode::NOTIFICATION_PAINT_NODE_RESIZED: {
|
||||
PaintNode *pn = get_paint_node();
|
||||
|
||||
if (pn) {
|
||||
|
@ -60,7 +60,8 @@ PaintNode *PaintVisualGrid::get_paint_node() {
|
||||
|
||||
void PaintVisualGrid::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case PaintNode::NOTIFICATION_PAINT_NODE_RESIZED: {
|
||||
PaintNode *pn = get_paint_node();
|
||||
|
||||
if (pn) {
|
||||
|
Loading…
Reference in New Issue
Block a user