Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25846] Strange behaviour if index of render.layers[] is out of range

Date:
2011-01-28 18:31
Priority:
3
State:
Closed
Submitted by:
Tim Neumann (alex_b0)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Strange behaviour if index of render.layers[] is out of range
Detailed description
*Open a new scene.
*in the console type: bpy.context.scene.render.layers[0]
-> this will give something like this: bpy.data.scenes["Scene"]...SceneRenderLayer
*now type: bpy.context.scene.render.layers[1]
-> this will give you nothing

In the official 2.56a build this raises an exception.

Tested with the following Build:
Blender:
============================================
version 2.56 (sub 0), revision 34544.
build date: 28.01.2011, 16:07
platform: Windows 7 32bit
binary path: C:\Projects\BLENDE~1\cmake\bin\blender.exe
build cflags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -msse2 -msse -pipe -funsigned-char -fno-strict-aliasing -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Werror=strict-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings
build cxxflags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -msse2 -msse -pipe -funsigned-char -fno-strict-aliasing -Wall -Wno-invalid-offsetof -Wno-sign-compare
build linkflags:
build system: CMake

Python:
============================================
version: 3.1.2 (r312:79147, Aug 27 2010, 16:34:49) [MSC v.1500 32 bit (Intel)]

Also verified with r34545 from graphicall.org

Followup

Message
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2011-02-01 00:56campbellbarton
close_dateNone2011-02-01 00:56campbellbarton
details*Open a new scene. *in the console type: bpy.context.scene.render.layers[0] -> this will give something like this: bpy.data.scenes["Scene"]...SceneRenderLayer *now type: bpy.context.scene.render.layers[1] -> this will give you nothing In the official 2.56a build this raises an exception. Tested with the following Build: Blender: ============================================ version 2.56 (sub 0), revision 34544. build date: 28.01.2011, 16:07 platform: Windows 7 32bit binary path: C:\\Projects\\BLENDE~1\\cmake\\bin\\blender.exe build cflags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -msse2 -msse -pipe -funsigned-char -fno-strict-aliasing -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Werror=strict-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings build cxxflags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -msse2 -msse -pipe -funsigned-char -fno-strict-aliasing -Wall -Wno-invalid-offsetof -Wno-sign-compare build linkflags: build system: CMake Python: ============================================ version: 3.1.2 (r312:79147, Aug 27 2010, 16:34:49) [MSC v.1500 32 bit (Intel)] Also verified with r34545 from graphicall.org2011-02-01 00:56campbellbarton
StatusInvestigate2011-02-01 00:56campbellbarton
assigned_tonone2011-01-29 14:29ton
details*Open a new scene. *in the console type: bpy.context.scene.render.layers[0] -> this will give something like this: bpy.data.scenes["Scene"]...SceneRenderLayer *now type: bpy.context.scene.render.layers[1] -> this will give you nothing In the official 2.56a build this raises an exception. Tested with the following Build: Blender: ============================================ version 2.56 (sub 0), revision 34544. build date: 28.01.2011, 16:07 platform: Windows 7 32bit binary path: C:\\Projects\\BLENDE~1\\cmake\\bin\\blender.exe build cflags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -msse2 -msse -pipe -funsigned-char -fno-strict-aliasing -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Werror=strict-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings build cxxflags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -msse2 -msse -pipe -funsigned-char -fno-strict-aliasing -Wall -Wno-invalid-offsetof -Wno-sign-compare build linkflags: build system: CMake Python: ============================================ version: 3.1.2 (r312:79147, Aug 27 2010, 16:34:49) [MSC v.1500 32 bit (Intel)] Also verified with r34545 from graphicall.org2011-01-29 14:29ton
StatusNew2011-01-29 14:29ton