Commit: d75d22144b4c5a736255ec7df361ab22ed23219a
Author: Germano Cavalcante
Date:   Fri Feb 12 13:22:20 2021 -0300
Branches: pygpu_extensions
https://developer.blender.org/rBd75d22144b4c5a736255ec7df361ab22ed23219a

Remove limitation of cubemap layers to be multiple of 6

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

M       source/blender/python/gpu/gpu_py_texture.c

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

diff --git a/source/blender/python/gpu/gpu_py_texture.c 
b/source/blender/python/gpu/gpu_py_texture.c
index d4a5ebcc6e0..0021da9f9d4 100644
--- a/source/blender/python/gpu/gpu_py_texture.c
+++ b/source/blender/python/gpu/gpu_py_texture.c
@@ -157,10 +157,7 @@ static PyObject *py_texture_new(PyTypeObject 
*UNUSED(self), PyObject *args, PyOb
     data = pybuffer_obj->buf.asvoid;
   }
 
-  if (is_cubemap && (depth % 6) != 0) {
-    strncpy(err_out, "cubemaps should have depth multiple of 6", 256);
-  }
-  else if (is_cubemap && height != 0) {
+  if (is_cubemap && height != 0) {
     strncpy(err_out, "cubemaps reuse the 'width' value as 'height', no need to 
set a value", 256);
   }
   else if (is_cubemap && is_layered && depth == 0) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to