Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/lib_query.c')
-rw-r--r--source/blender/blenkernel/intern/lib_query.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/lib_query.c b/source/blender/blenkernel/intern/lib_query.c
index c204c272de1..67065a1d715 100644
--- a/source/blender/blenkernel/intern/lib_query.c
+++ b/source/blender/blenkernel/intern/lib_query.c
@@ -30,6 +30,7 @@
#include "DNA_collection_types.h"
#include "DNA_constraint_types.h"
#include "DNA_gpencil_types.h"
+#include "DNA_hair_types.h"
#include "DNA_key_types.h"
#include "DNA_light_types.h"
#include "DNA_lattice_types.h"
@@ -43,6 +44,7 @@
#include "DNA_object_force_types.h"
#include "DNA_outliner_types.h"
#include "DNA_lightprobe_types.h"
+#include "DNA_pointcloud_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
@@ -52,6 +54,7 @@
#include "DNA_sound_types.h"
#include "DNA_text_types.h"
#include "DNA_vfont_types.h"
+#include "DNA_volume_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_workspace_types.h"
#include "DNA_world_types.h"
@@ -1250,6 +1253,27 @@ static void library_foreach_ID_link(Main *bmain,
break;
}
+ case ID_HA: {
+ Hair *hair = (Hair *)id;
+ for (i = 0; i < hair->totcol; i++) {
+ CALLBACK_INVOKE(hair->mat[i], IDWALK_CB_USER);
+ }
+ break;
+ }
+ case ID_PT: {
+ PointCloud *pointcloud = (PointCloud *)id;
+ for (i = 0; i < pointcloud->totcol; i++) {
+ CALLBACK_INVOKE(pointcloud->mat[i], IDWALK_CB_USER);
+ }
+ break;
+ }
+ case ID_VO: {
+ Volume *volume = (Volume *)id;
+ for (i = 0; i < volume->totcol; i++) {
+ CALLBACK_INVOKE(volume->mat[i], IDWALK_CB_USER);
+ }
+ break;
+ }
case ID_SCR: {
if (data.flag & IDWALK_INCLUDE_UI) {
@@ -1416,6 +1440,12 @@ bool BKE_library_id_can_use_idtype(ID *id_owner, const short id_type_used)
return ELEM(id_type_used, ID_MA);
case ID_WS:
return ELEM(id_type_used, ID_SCR, ID_SCE);
+ case ID_HA:
+ return ELEM(id_type_used, ID_MA);
+ case ID_PT:
+ return ELEM(id_type_used, ID_MA);
+ case ID_VO:
+ return ELEM(id_type_used, ID_MA);
case ID_IM:
case ID_VF:
case ID_TXT: