layout problem: #43286

Closed
opened 2015-01-16 22:05:43 +01:00 by Leon Eckardt · 6 comments

Blender Version
Broken: 2.73.0 b4d8fb5, 2.73.2 3f60d66

Short description of error
bug in the layout api

Exact steps for others to reproduce the error
I worded on a addon and i discoverd an errror in the layout api. It seems that multiple aligned colums in a row are not possible. In contrast multiple aligned rows in a column work. Run the following script:

  import bpy
  bpy.types.WindowManager.vec_math_x1 = bpy.props.FloatProperty(name="x1", default=1.0)
   
  class VIEW3D_PT_vecMath(bpy.types.Panel):
  	bl_space_type = 'VIEW_3D'
  	bl_region_type = 'TOOLS'
  	bl_category = "Tools"
  	bl_label = 'Vector Math'
  	
  	def draw(self, context):
  		layout = self.layout
		#                \/ uncomment this:
  		row = layout.row(align=True)
  		for u in range(3):
  			co= row.column(align=True)
  			for v in range(3):
  				co.prop(bpy.context.window_manager, "vec_math_x1")
				- same error with other stuff:
				- co.operator("render.render")
		#the other way round it works:
  		col=layout.column(align=True)
  		for v in range(3):
  			row = col.row(align=True)
  			for u in range(3):
  				row.prop(bpy.context.window_manager, "vec_math_x1")
  def register():
  	bpy.utils.register_module(__name__)
  if __name__ == "__main__":
  	register()
**Blender Version** Broken: 2.73.0 b4d8fb5, 2.73.2 3f60d66 **Short description of error** bug in the layout api **Exact steps for others to reproduce the error** I worded on a addon and i discoverd an errror in the layout api. It seems that multiple aligned colums in a row are not possible. In contrast multiple aligned rows in a column work. Run the following script: ``` import bpy ``` ``` bpy.types.WindowManager.vec_math_x1 = bpy.props.FloatProperty(name="x1", default=1.0) ``` ``` class VIEW3D_PT_vecMath(bpy.types.Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'TOOLS' bl_category = "Tools" bl_label = 'Vector Math' def draw(self, context): layout = self.layout ``` # \/ uncomment this: ``` row = layout.row(align=True) for u in range(3): co= row.column(align=True) for v in range(3): co.prop(bpy.context.window_manager, "vec_math_x1") ``` - same error with other stuff: - co.operator("render.render") #the other way round it works: ``` col=layout.column(align=True) for v in range(3): row = col.row(align=True) for u in range(3): row.prop(bpy.context.window_manager, "vec_math_x1") ``` ``` def register(): bpy.utils.register_module(__name__) if __name__ == "__main__": register()
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Leon95

Added subscriber: @Leon95
Author

to check the difference comment the marked row like this:

  

/ uncomment this:

row = layout.row()#align=True)

(cant edit the task discription, why i'm not the owner?)

to check the difference comment the marked row like this: ``` ``` # \/ uncomment this: ``` row = layout.row()#align=True) ``` (cant edit the task discription, why i'm not the owner?)
Member

Added subscribers: @ThomasDinges, @JulianEisel

Added subscribers: @ThomasDinges, @JulianEisel
Member

@ThomasDinges, you worked quite a lot with the layout stuff for the 2.5 rewrite, right? Do you know if this is supposed to work?

@ThomasDinges, you worked quite a lot with the layout stuff for the 2.5 rewrite, right? Do you know if this is supposed to work?

Closed as duplicate of blender/blender-addons#28391

Closed as duplicate of blender/blender-addons#28391
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 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#43286
No description provided.