Browse Source

Merge pull request #67348 from Mickeon/salvage-a-dear-comment

Comment not to remove `data` structs in some Nodes
Rémi Verschelde 3 years ago
parent
commit
f32f5b70d8
3 changed files with 3 additions and 0 deletions
  1. 1 0
      scene/3d/node_3d.h
  2. 1 0
      scene/gui/control.h
  3. 1 0
      scene/main/node.h

+ 1 - 0
scene/3d/node_3d.h

@@ -96,6 +96,7 @@ private:
 
 
 	mutable SelfList<Node> xform_change;
 	mutable SelfList<Node> xform_change;
 
 
+	// This Data struct is to avoid namespace pollution in derived classes.
 	struct Data {
 	struct Data {
 		mutable Transform3D global_transform;
 		mutable Transform3D global_transform;
 		mutable Transform3D local_transform;
 		mutable Transform3D local_transform;

+ 1 - 0
scene/gui/control.h

@@ -159,6 +159,7 @@ private:
 		}
 		}
 	};
 	};
 
 
+	// This Data struct is to avoid namespace pollution in derived classes.
 	struct Data {
 	struct Data {
 		// Global relations.
 		// Global relations.
 
 

+ 1 - 0
scene/main/node.h

@@ -91,6 +91,7 @@ private:
 		SceneTree::Group *group = nullptr;
 		SceneTree::Group *group = nullptr;
 	};
 	};
 
 
+	// This Data struct is to avoid namespace pollution in derived classes.
 	struct Data {
 	struct Data {
 		String scene_file_path;
 		String scene_file_path;
 		Ref<SceneState> instance_state;
 		Ref<SceneState> instance_state;