[Bf-blender-cvs] [b5a5850] master: Fix Cycles OSL compilation based on modified time not working.

Brecht Van Lommel noreply at git.blender.org
Sat Nov 12 17:33:55 CET 2016


Commit: b5a58507f2b01be86af63815f6e784b7952903c3
Author: Brecht Van Lommel
Date:   Sat Nov 12 17:20:40 2016 +0100
Branches: master
https://developer.blender.org/rBb5a58507f2b01be86af63815f6e784b7952903c3

Fix Cycles OSL compilation based on modified time not working.

===================================================================

M	intern/cycles/util/util_path.cpp

===================================================================

diff --git a/intern/cycles/util/util_path.cpp b/intern/cycles/util/util_path.cpp
index 62ef8fc..5df262f 100644
--- a/intern/cycles/util/util_path.cpp
+++ b/intern/cycles/util/util_path.cpp
@@ -757,9 +757,9 @@ uint64_t path_modified_time(const string& path)
 {
 	path_stat_t st;
 	if(path_stat(path, &st) != 0) {
-		return st.st_mtime;
+		return 0;
 	}
-	return 0;
+	return st.st_mtime;
 }
 
 bool path_remove(const string& path)




More information about the Bf-blender-cvs mailing list