Selaa lähdekoodia

declare "_validate_property" as protected

In other classes, the function _validate_property is declared as protected (in the case of Area2D), but in Area3D it's declared as private, which causes compile errors when trying to extend the class in a C++ module for example.
Arthur J 2 vuotta sitten
vanhempi
commit
b18a553a06
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      scene/3d/area_3d.h

+ 1 - 2
scene/3d/area_3d.h

@@ -141,13 +141,12 @@ private:
 	float reverb_amount = 0.0;
 	float reverb_uniformity = 0.0;
 
-	void _validate_property(PropertyInfo &p_property) const;
-
 	void _initialize_wind();
 
 protected:
 	void _notification(int p_what);
 	static void _bind_methods();
+	void _validate_property(PropertyInfo &p_property) const;
 
 public:
 	void set_gravity_space_override_mode(SpaceOverride p_mode);