Merge branch 'blender-v4.5-release'
This commit is contained in:
@@ -84,7 +84,6 @@ endif()
|
||||
|
||||
if(WITH_EXPERIMENTAL_FEATURES)
|
||||
add_definitions(-DWITH_SIMULATION_DATABLOCK)
|
||||
add_definitions(-DWITH_POINTCLOUD)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_editor_object "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
||||
|
||||
@@ -2743,18 +2743,12 @@ static const EnumPropertyItem convert_target_items[] = {
|
||||
"MESH",
|
||||
ICON_OUTLINER_OB_MESH,
|
||||
"Mesh",
|
||||
#ifdef WITH_POINTCLOUD
|
||||
"Mesh from Curve, Surface, Metaball, Text, or Point Cloud objects"},
|
||||
#else
|
||||
"Mesh from Curve, Surface, Metaball, or Text objects"},
|
||||
#endif
|
||||
#ifdef WITH_POINTCLOUD
|
||||
{OB_POINTCLOUD,
|
||||
"POINTCLOUD",
|
||||
ICON_OUTLINER_OB_POINTCLOUD,
|
||||
"Point Cloud",
|
||||
"Point Cloud from Mesh objects"},
|
||||
#endif
|
||||
{OB_CURVES, "CURVES", ICON_OUTLINER_OB_CURVES, "Curves", "Curves from evaluated curve data"},
|
||||
{OB_GREASE_PENCIL,
|
||||
"GREASEPENCIL",
|
||||
|
||||
@@ -42,7 +42,6 @@ endif()
|
||||
|
||||
if(WITH_EXPERIMENTAL_FEATURES)
|
||||
add_definitions(-DWITH_SIMULATION_DATABLOCK)
|
||||
add_definitions(-DWITH_POINTCLOUD)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_editor_space_buttons "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
||||
|
||||
@@ -264,11 +264,9 @@ static bool buttons_context_path_data(ButsContextPath *path, int type)
|
||||
if (RNA_struct_is_a(ptr->type, &RNA_Curves) && ELEM(type, -1, OB_CURVES)) {
|
||||
return true;
|
||||
}
|
||||
#ifdef WITH_POINTCLOUD
|
||||
if (RNA_struct_is_a(ptr->type, &RNA_PointCloud) && ELEM(type, -1, OB_POINTCLOUD)) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
if (RNA_struct_is_a(ptr->type, &RNA_Volume) && ELEM(type, -1, OB_VOLUME)) {
|
||||
return true;
|
||||
}
|
||||
@@ -850,9 +848,7 @@ const char *buttons_context_dir[] = {
|
||||
"gpencil",
|
||||
"grease_pencil",
|
||||
"curves",
|
||||
#ifdef WITH_POINTCLOUD
|
||||
"pointcloud",
|
||||
#endif
|
||||
"volume",
|
||||
nullptr,
|
||||
};
|
||||
@@ -947,12 +943,10 @@ int /*eContextResult*/ buttons_context(const bContext *C,
|
||||
set_pointer_type(path, result, &RNA_Curves);
|
||||
return CTX_RESULT_OK;
|
||||
}
|
||||
#ifdef WITH_POINTCLOUD
|
||||
if (CTX_data_equals(member, "pointcloud")) {
|
||||
set_pointer_type(path, result, &RNA_PointCloud);
|
||||
return CTX_RESULT_OK;
|
||||
}
|
||||
#endif
|
||||
if (CTX_data_equals(member, "volume")) {
|
||||
set_pointer_type(path, result, &RNA_Volume);
|
||||
return CTX_RESULT_OK;
|
||||
|
||||
Reference in New Issue
Block a user