getVertexArrayLength changed in 2.66 #34550

Closed
opened 2013-03-07 11:30:34 +01:00 by Pierrick K. · 10 comments

%%%Hello,

The behavior of the bge.types.KX_MeshProxy.getVertexArrayLength method changed,
since 2.66 it returns twice the value it used to return in previous releases.

You will find a test http://ge.tt/5DFMgKa/v/0 , just run the Game Engine and look at your terminal output:

  • with 2.65a and less, getVertexArrayLength gives 182, while
  • with 2.66 and 2.66a, getVertexArrayLength gives 361.

Thans for any help :-)


bge.types.KX_MeshProxy.getVertexArrayLength
http://www.blender.org/documentation/blender_python_api_2_66_release/bge.types.KX_MeshProxy.html#bge.types.KX_MeshProxy.getVertexArrayLength
http://www.blender.org/documentation/blender_python_api_2_65_release/bge.types.html#bge.types.KX_MeshProxy.getVertexArrayLength
%%%

%%%Hello, The behavior of the `bge.types.KX_MeshProxy.getVertexArrayLength` method changed, since 2.66 it returns twice the value it used to return in previous releases. You will find a test http://ge.tt/5DFMgKa/v/0 , just run the Game Engine and look at your terminal output: - with 2.65a and less, getVertexArrayLength gives 182, while - with 2.66 and 2.66a, getVertexArrayLength gives 361. Thans for any help :-) ---- bge.types.KX_MeshProxy.getVertexArrayLength http://www.blender.org/documentation/blender_python_api_2_66_release/bge.types.KX_MeshProxy.html#bge.types.KX_MeshProxy.getVertexArrayLength http://www.blender.org/documentation/blender_python_api_2_65_release/bge.types.html#bge.types.KX_MeshProxy.getVertexArrayLength %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%I can't confirm the bug here. I get 182 verts in either Blender versions. What is your OS?
OSX 10.8.2 here%%%

%%%I can't confirm the bug here. I get 182 verts in either Blender versions. What is your OS? OSX 10.8.2 here%%%
Author

%%%I am on Ubuntu 12.04 i686, I did test with:

blender-2.62-linux-glibc27-i686/
blender-2.64a-linux-glibc27-i686/
blender-2.65-linux-glibc211-i686/
blender-2.65a-linux-glibc211-i686/

  • 182

blender-2.66-linux-glibc211-i686/
blender-2.66a-linux-glibc211-i686/
blender-2.66-r55038-linux-glibc211-i686/

  • 361%%%

%%%I am on Ubuntu 12.04 i686, I did test with: blender-2.62-linux-glibc27-i686/ blender-2.64a-linux-glibc27-i686/ blender-2.65-linux-glibc211-i686/ blender-2.65a-linux-glibc211-i686/ - > 182 blender-2.66-linux-glibc211-i686/ blender-2.66a-linux-glibc211-i686/ blender-2.66-r55038-linux-glibc211-i686/ - > 361%%%

%%%I had another linux user testing, and he also got 182.
Are you getting those numbers from the blenderplayer or blender?

Can you simplify your test file? leaving only the bare minimum for reproducing it?
(you can even reduce the number of vertices in the polygon)%%%

%%%I had another linux user testing, and he also got 182. Are you getting those numbers from the blenderplayer or blender? Can you simplify your test file? leaving only the bare minimum for reproducing it? (you can even reduce the number of vertices in the polygon)%%%

%%%I managed to reproduce the bug. I attached a new test file (vertlen.blend)

To reproduce from scratch in 2.66a:
(1) create a new plane
(2) Triangulate it (Ctrl+T)
(3) rename it to "Arc_180" (or change the python script).

The new file should show 4 verts, but instead it's showing 5 in 2.66
Even worse, if you remove the material from the object, and set "Use Material Caching" in the render panel it shows 6 vertices%%%

%%%I managed to reproduce the bug. I attached a new test file (vertlen.blend) To reproduce from scratch in 2.66a: (1) create a new plane (2) Triangulate it (Ctrl+T) (3) rename it to "Arc_180" (or change the python script). The new file should show 4 verts, but instead it's showing 5 in 2.66 Even worse, if you remove the material from the object, and set "Use Material Caching" in the render panel it shows 6 vertices%%%

%%%The bug was introduced in rev. 53145 "BGE: Some as of yet unmerged work I did in the Swiss branch."%%%

%%%The bug was introduced in rev. 53145 "BGE: Some as of yet unmerged work I did in the Swiss branch."%%%

%%%vertlen.blend shows 4 verts for me. I'm using Arch Linux with Blender r55398. Does r54774 change anything in terms of this bug?%%%

%%%vertlen.blend shows 4 verts for me. I'm using Arch Linux with Blender r55398. Does r54774 change anything in terms of this bug?%%%

%%%bug fixed on rev. r55483.
Can you please test a new build (from builder.blender.org) to see if it fixes your problem?
Closing the bug in the mean time, if the problem persist we can reopen it. Thanks for the report.%%%

%%%bug fixed on rev. r55483. Can you please test a new build (from builder.blender.org) to see if it fixes your problem? Closing the bug in the mean time, if the problem persist we can reopen it. Thanks for the report.%%%

Changed status from 'Open' to: 'Resolved'

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

%%%Looks good!
Thank you!%%%

%%%Looks good! Thank you!%%%
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#34550
No description provided.