Discovered typo in bmesh code #115060

Closed
opened 2023-11-17 17:50:07 +01:00 by Matthijs de Rijk · 2 comments

I was wondering through the bmesh code and I discovered this typo:

pmask and lmask are flipped around for faces and loops in this piece of code.

As the code is now it uses the lmask filter to filter datatypes for the faces and the pmask filter to filter datatypes for the faces/polygons.

The correct code should have those be flipped around.

image

here is the file where the mistake is found.

https://projects.blender.org/blender/blender/src/branch/main/source/blender/bmesh/intern/bmesh_construct.cc#L518

I have no idea if this is related to a reported bug already, or what the implications are for correcting the mistake, as I'm not very familiar with the blender source code. I just discovered it while wandering through.

I was wondering through the bmesh code and I discovered this typo: pmask and lmask are flipped around for faces and loops in this piece of code. As the code is now it uses the lmask filter to filter datatypes for the faces and the pmask filter to filter datatypes for the faces/polygons. The correct code should have those be flipped around. ![image](/attachments/05bec39a-befd-4cdc-9c5c-f43dc8c01db5) here is the file where the mistake is found. https://projects.blender.org/blender/blender/src/branch/main/source/blender/bmesh/intern/bmesh_construct.cc#L518 I have no idea if this is related to a reported bug already, or what the implications are for correcting the mistake, as I'm not very familiar with the blender source code. I just discovered it while wandering through.
164 KiB
Matthijs de Rijk added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-11-17 17:50:08 +01:00
Iliya Katushenock added the
Interest
Modeling
label 2023-11-17 20:05:39 +01:00
Jesse Yurkovich added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-11-17 20:35:45 +01:00

@HooglyBoogly It looks like 6f190c669f typo'd this.

@HooglyBoogly It looks like 6f190c669f3001f73e9051fc66e4d233957391c4 typo'd this.
Iliya Katushenock added
Module
Modeling
and removed
Interest
Modeling
labels 2023-11-17 20:50:53 +01:00
Member

Thanks for reporting!

Thanks for reporting!
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-11-19 16:51:57 +01:00
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#115060
No description provided.