Material.diffuse_color rgba introduced issues #61017

Closed
opened 2019-01-30 13:31:04 +01:00 by Martin Capitanio · 14 comments

@JacquesLucke

See blender/blender@1a61c209a0

Collada


  • import

i232-cube.zip

image.png

  • select X-Ray
# Blender 2.80 (sub 43), Commit date: 2019-01-30 11:00, Hash 93dc2d373fdd
bpy.ops.object.delete(use_global=False)  # Operator
Deleted 1 object(s)  # Info
bpy.ops.outliner.collection_new(nested=True)  # Operator
bpy.context.space_data.recent_folders_active = 0  # Property

# backtrace
blender8tip(BLI_system_backtrace+0x35) [0x5572b302a9bb]
blender8tip(+0x23aed7f) [0x5572b1ef8d7f]
blender8tip(+0x23aef7e) [0x5572b1ef8f7e]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f517c53bf20]
blender8tip(GPU_shader_get_uniform_block+0x14) [0x5572b28d5bae]
blender8tip(+0x2dbd0e8) [0x5572b29070e8]
blender8tip(DRW_shgroup_create+0x3a) [0x5572b2907c63]
blender8tip(workbench_forward_engine_init+0x852) [0x5572b2954266]
blender8tip(+0x2e02031) [0x5572b294c031]
blender8tip(+0x2db716e) [0x5572b290116e]
blender8tip(DRW_draw_render_loop_ex+0x247) [0x5572b2902430]
blender8tip(DRW_draw_view+0x103) [0x5572b29021e6]
blender8tip(+0x24f36d3) [0x5572b203d6d3]
blender8tip(view3d_main_region_draw+0x43) [0x5572b203d783]
blender8tip(ED_region_do_draw+0x1ab) [0x5572b23cdc49]
blender8tip(+0x23b2590) [0x5572b1efc590]
blender8tip(+0x23b2b0e) [0x5572b1efcb0e]
blender8tip(wm_draw_update+0xc5) [0x5572b1efd01a]
blender8tip(WM_main+0x48) [0x5572b1ef9d59]
blender8tip(+0x23aa708) [0x5572b1ef4708]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f517c51eb97]
blender8tip(_start+0x2a) [0x5572b1ef408a]

FBX

  • import the model
...

  File "bin/2.80/scripts/modules/bpy_extras/node_shader_utils.py", line 271, in base_color_set
    self.material.diffuse_color = color
ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 4 items, not 3


@JacquesLucke See blender/blender@1a61c209a0 Collada **** * import [i232-cube.zip](https://archive.blender.org/developer/F6453253/i232-cube.zip) ![image.png](https://archive.blender.org/developer/F6453294/image.png) * select X-Ray ``` # Blender 2.80 (sub 43), Commit date: 2019-01-30 11:00, Hash 93dc2d373fdd bpy.ops.object.delete(use_global=False) # Operator Deleted 1 object(s) # Info bpy.ops.outliner.collection_new(nested=True) # Operator bpy.context.space_data.recent_folders_active = 0 # Property # backtrace blender8tip(BLI_system_backtrace+0x35) [0x5572b302a9bb] blender8tip(+0x23aed7f) [0x5572b1ef8d7f] blender8tip(+0x23aef7e) [0x5572b1ef8f7e] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f517c53bf20] blender8tip(GPU_shader_get_uniform_block+0x14) [0x5572b28d5bae] blender8tip(+0x2dbd0e8) [0x5572b29070e8] blender8tip(DRW_shgroup_create+0x3a) [0x5572b2907c63] blender8tip(workbench_forward_engine_init+0x852) [0x5572b2954266] blender8tip(+0x2e02031) [0x5572b294c031] blender8tip(+0x2db716e) [0x5572b290116e] blender8tip(DRW_draw_render_loop_ex+0x247) [0x5572b2902430] blender8tip(DRW_draw_view+0x103) [0x5572b29021e6] blender8tip(+0x24f36d3) [0x5572b203d6d3] blender8tip(view3d_main_region_draw+0x43) [0x5572b203d783] blender8tip(ED_region_do_draw+0x1ab) [0x5572b23cdc49] blender8tip(+0x23b2590) [0x5572b1efc590] blender8tip(+0x23b2b0e) [0x5572b1efcb0e] blender8tip(wm_draw_update+0xc5) [0x5572b1efd01a] blender8tip(WM_main+0x48) [0x5572b1ef9d59] blender8tip(+0x23aa708) [0x5572b1ef4708] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f517c51eb97] blender8tip(_start+0x2a) [0x5572b1ef408a] ``` FBX ### * import the model ``` ... File "bin/2.80/scripts/modules/bpy_extras/node_shader_utils.py", line 271, in base_color_set self.material.diffuse_color = color ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 4 items, not 3 ```

Added subscribers: @JacquesLucke, @capnm

Added subscribers: @JacquesLucke, @capnm

blender/blender#61018 was marked as duplicate of this issue

blender/blender#61018 was marked as duplicate of this issue
Jacques Lucke self-assigned this 2019-01-30 13:42:19 +01:00

This issue was referenced by blender/blender@1ceaca7f64

This issue was referenced by blender/blender@1ceaca7f646c90f601dd53e4843d914e25289df2
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @Samir-Osman

Added subscriber: @Samir-Osman

Added subscribers: @fclem, @brecht

Added subscribers: @fclem, @brecht

@fclem, I think it's better to keep the alpha separate because this is breaking the Python API for many scripts, which I didn't think of. At this stage in the development process we better avoid that.

@fclem, I think it's better to keep the alpha separate because this is breaking the Python API for many scripts, which I didn't think of. At this stage in the development process we better avoid that.

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Member

@capnm: Please create another report for the other bug (in general we'd like to have one bug per report, not two).

@capnm: Please create another report for the other bug (in general we'd like to have one bug per report, not two).

If we keep this API change, someone needs to go through all the addons and fix them all, because waiting for each to be reported individually is not efficient.

If we keep this API change, someone needs to go through all the addons and fix them all, because waiting for each to be reported individually is not efficient.

In #61017#610088, @JacquesLucke wrote:
@capnm: Please create another report for the other bug (in general we'd like to have one bug per report, not two).

Is is already fixed in blender/blender@e08156d799 8-)

> In #61017#610088, @JacquesLucke wrote: > @capnm: Please create another report for the other bug (in general we'd like to have one bug per report, not two). Is is already fixed in blender/blender@e08156d799 8-)
Member

@brecht, that is what I did here: 4e8ddec4e1
(I only updated the once that are already updated to Blender 2.8)

@brecht, that is what I did here: 4e8ddec4e1 (I only updated the once that are already updated to Blender 2.8)

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Ok, I guess we can consider this resolved then.

Ok, I guess we can consider this resolved then.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#61017
No description provided.