Skip to content

A weird bug about ArrowVectorField #3273

@argb

Description

@argb

Description of bug / unexpected behavior

Expected behavior

This is a bug.

How to reproduce the issue

class BasicVectorFieldUsage(Scene):
    def construct(self):
        av = ArrowVectorField(lambda pos: pos)
        self.add(av)

this code don't work

change "lambda pos: pos" to "lambda pos: pos*1", then it works.

I can't find the reason.

Code for reproducing the problem
Paste your code here.

Additional media files

Images/GIFs

Logs

Terminal output
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)):
  • RAM:
  • Python version (python/py/python3 --version):
  • Installed modules (provide output from pip list):
PASTE HERE
LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020):
  • Installed LaTeX packages:
FFMPEG

Output of ffmpeg -version:

PASTE HERE

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue:bugSomething isn't working... For use in issues

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions