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>2014-05-03 21:15:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-03 21:15:20 +0400
commit95d885b3f431284b2e1eb8640771cab00b201437 (patch)
treefb4e510adcab167b59032c04461ac819e1d46e38 /intern/cycles/app/cycles_xml.h
parent08d899d1e7fe0c669954b197fef0e57269edfb79 (diff)
Quiet float conversion warnings when building cycles standalone
Diffstat (limited to 'intern/cycles/app/cycles_xml.h')
-rw-r--r--intern/cycles/app/cycles_xml.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/app/cycles_xml.h b/intern/cycles/app/cycles_xml.h
index 1e3ed411312..2d225f3a013 100644
--- a/intern/cycles/app/cycles_xml.h
+++ b/intern/cycles/app/cycles_xml.h
@@ -23,6 +23,10 @@ class Scene;
void xml_read_file(Scene *scene, const char *filepath);
+/* macros for importing */
+#define RAD2DEGF(_rad) ((_rad) * (float)(180.0 / M_PI))
+#define DEG2RADF(_deg) ((_deg) * (float)(M_PI / 180.0))
+
CCL_NAMESPACE_END
#endif /* __CYCLES_XML__ */