Cleanup: Remove redundant return statement #118176
No reviewers
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#118176
Loading…
Reference in New Issue
No description provided.
Delete Branch "Germain-Le-Chapelain/blender:codesimplification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Germain Le Chapelain germain.lechapelain@lanvaux.fr
It simplifies the code :|
- Code simplificationto Cleanup: Remove redundant return statement@aras_p Something for you maybe to check on? :)
Thanks for the PR. But the description should explain why this code was unnecessary. Deleting any code would be a simplification, the important part is that it doesn't change behavior :)
LGTM. Yeah no idea why the code is like this, the extra return statement seems to be clearly unnecessary.
I think it’s software engineering/the logic of reading OBJ:
If
create_geometry
was doing only that: creating the geometry, as oppose to perhaps create the geometry, we could simplify further.I don’t know all the cases of OBJ files yet but I have a strong suspicion that the very 1st call to it is superfluous as well, in which case we could always create (on
o
,cstype
and the likes) we could completely rid of the branching logic inside.(I’m more in my other tentative PR for the surfaces 🙂
For that I just thought I’m gonna try delving in what render those working NURBS surfaces from the Windows rendering debugger thing if I can.)
Thank you for the look at!
(I had another one on Gitignore for when the dependency library are built on Windows.)
Checkout
From your project repository, check out a new branch and test the changes.