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:
authorCampbell Barton <ideasman42@gmail.com>2018-05-04 08:30:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-04 08:30:14 +0300
commitb3545ae37352ec440ee8fece0cd9c66289ebe52f (patch)
treea12039bd4f48b9adafe144a730e14b7405e0ed7f /source/blender/blenkernel/intern/idprop.c
parent892dd3d069508319a8eff8a1401977e27d01f648 (diff)
parentf3c5b0394f095bb017c19c5a945c8e7714205bf2 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/blenkernel/intern/idprop.c')
-rw-r--r--source/blender/blenkernel/intern/idprop.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/idprop.c b/source/blender/blenkernel/intern/idprop.c
index 87e5ed8cc1e..b3b5afa88a9 100644
--- a/source/blender/blenkernel/intern/idprop.c
+++ b/source/blender/blenkernel/intern/idprop.c
@@ -859,9 +859,9 @@ bool IDP_EqualsProperties_ex(IDProperty *prop1, IDProperty *prop2, const bool is
if ((p1 != p2) && ((fabsf(p1 - p2) / max_ff(p1, p2)) < 0.001f)) {
printf("WARNING: Comparing two float properties that have nearly the same value (%f vs. %f)\n", p1, p2);
printf(" p1: ");
- IDP_spit(prop1);
+ IDP_print(prop1);
printf(" p2: ");
- IDP_spit(prop2);
+ IDP_print(prop2);
}
}
#endif
@@ -1107,3 +1107,18 @@ void IDP_Reset(IDProperty *prop, const IDProperty *reference)
}
/** \} */
+
+/* We could write a C version, see: idprop_py_api.c */
+#ifndef WITH_PYTHON
+char *IDP_reprN(IDProperty *UNUSED(prop))
+{
+ return BLI_strdup("<unsupported>");
+}
+
+void IDP_print(IDProperty *prop)
+{
+ char *repr = IDP_reprN(prop);
+ printf("IDProperty(%p): %s\n", prop, repr);
+ MEM_freeN(repr);
+}
+#endif /* WITH_PYTHON */