3D Viewport drawing issues with zero-width curves #85664

Closed
opened 2021-02-15 18:28:43 +01:00 by Sybren A. Stüvel · 13 comments

System Information
Operating system: both Linux and Windows
Graphics card: GeForce RTX 2080

Blender Version
Broken: 2.93 alpha since cdb3cbd644
Worked: 2.92 beta and master branch before cdb3cbd644

Short description of error
Extra lines are drawn in the viewport when zero-line curves are present.

Exact steps for others to reproduce the error
Just open the attached blend file, and see two lines. The lower one on the ground plane is correct, the diagonal one pointing up from the origin is not.

image.png

drawing-problem.blend

The blend file was created by running the following script on a factory-startup:

import bpy

bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)

def create_demo_object():
    data = bpy.data.curves.new("Curve", "CURVE")
    spline = data.splines.new("POLY")
    spline.points.add(1)
    spline.points[0].co = (2, 3, 0, 0)
    spline.points[1].co = (5, 7, 0, 0)
    ob = bpy.data.objects.new("Curve", data)
    scene = bpy.context.scene
    scene.collection.objects.link(ob)

create_demo_object()
**System Information** Operating system: both Linux and Windows Graphics card: GeForce RTX 2080 **Blender Version** Broken: 2.93 alpha since cdb3cbd644 Worked: 2.92 beta and master branch before cdb3cbd644 **Short description of error** Extra lines are drawn in the viewport when zero-line curves are present. **Exact steps for others to reproduce the error** Just open the attached blend file, and see two lines. The lower one on the ground plane is correct, the diagonal one pointing up from the origin is not. ![image.png](https://archive.blender.org/developer/F9804925/image.png) [drawing-problem.blend](https://archive.blender.org/developer/F9804932/drawing-problem.blend) The blend file was created by running the following script on a factory-startup: ``` import bpy bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete(use_global=False) def create_demo_object(): data = bpy.data.curves.new("Curve", "CURVE") spline = data.splines.new("POLY") spline.points.add(1) spline.points[0].co = (2, 3, 0, 0) spline.points[1].co = (5, 7, 0, 0) ob = bpy.data.objects.new("Curve", data) scene = bpy.context.scene scene.collection.objects.link(ob) create_demo_object() ```
Author
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

#85732 was marked as duplicate of this issue

#85732 was marked as duplicate of this issue

blender/blender-addons#85730 was marked as duplicate of this issue

blender/blender-addons#85730 was marked as duplicate of this issue

#85647 was marked as duplicate of this issue

#85647 was marked as duplicate of this issue

#85685 was marked as duplicate of this issue

#85685 was marked as duplicate of this issue
Hans Goudey self-assigned this 2021-02-15 18:30:25 +01:00
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscribers: @esmilesvfx, @lichtwerk

Added subscribers: @esmilesvfx, @lichtwerk
Member

Multiple reports are now coming in, so will set to high prio.

Multiple reports are now coming in, so will set to high prio.
Member

Thanks @lichtwerk, I'll fix this today.

Thanks @lichtwerk, I'll fix this today.

This issue was referenced by ab484ff22f

This issue was referenced by ab484ff22f4d9a1651f1b5b3475a222a056b001d
Member

Changed status from 'Confirmed' to: 'Resolved'

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

Added subscriber: @Edmis

Added subscriber: @Edmis
Member

Added subscribers: @MaybeLamia, @ChrisGraz

Added subscribers: @MaybeLamia, @ChrisGraz
Thomas Dinges added this to the 2.93 LTS milestone 2023-02-07 18:46:33 +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
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#85664
No description provided.