Remove (ifdef) RNA for simulation, point cloud and particles
For 2.90 release this should not be exposed in the RNA API. In master this needs to be ON by default, that's all. Differential Revision: https://developer.blender.org/D8589
This commit is contained in:
@@ -249,12 +249,16 @@ static int buttons_context_path_data(ButsContextPath *path, int type)
|
||||
if (RNA_struct_is_a(ptr->type, &RNA_GreasePencil) && (type == -1 || type == OB_GPENCIL)) {
|
||||
return 1;
|
||||
}
|
||||
#ifdef WITH_HAIR_NODES
|
||||
if (RNA_struct_is_a(ptr->type, &RNA_Hair) && (type == -1 || type == OB_HAIR)) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
#ifdef WITH_PARTICLE_NODES
|
||||
if (RNA_struct_is_a(ptr->type, &RNA_PointCloud) && (type == -1 || type == OB_POINTCLOUD)) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
if (RNA_struct_is_a(ptr->type, &RNA_Volume) && (type == -1 || type == OB_VOLUME)) {
|
||||
return 1;
|
||||
}
|
||||
@@ -871,14 +875,18 @@ int buttons_context(const bContext *C, const char *member, bContextDataResult *r
|
||||
set_pointer_type(path, result, &RNA_LightProbe);
|
||||
return 1;
|
||||
}
|
||||
#ifdef WITH_HAIR_NODES
|
||||
if (CTX_data_equals(member, "hair")) {
|
||||
set_pointer_type(path, result, &RNA_Hair);
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
#ifdef WITH_PARTICLE_NODES
|
||||
if (CTX_data_equals(member, "pointcloud")) {
|
||||
set_pointer_type(path, result, &RNA_PointCloud);
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
if (CTX_data_equals(member, "volume")) {
|
||||
set_pointer_type(path, result, &RNA_Volume);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user