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:
2020-08-17 09:47:10 +02:00
parent 20a8edaa72
commit 83e3d25bca
14 changed files with 121 additions and 3 deletions

View File

@@ -564,9 +564,17 @@ static StructRNA *rna_Object_data_typef(PointerRNA *ptr)
case OB_GPENCIL:
return &RNA_GreasePencil;
case OB_HAIR:
# ifdef WITH_HAIR_NODES
return &RNA_Hair;
# else
return &RNA_ID;
# endif
case OB_POINTCLOUD:
# ifdef WITH_PARTICLE_NODES
return &RNA_PointCloud;
# else
return &RNA_ID;
# endif
case OB_VOLUME:
return &RNA_Volume;
default: