Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Use full name to create empty modules
Browse files Browse the repository at this point in the history
Fixes a problem with modules fail to localise submodule names
properly in certain version of Blender API.
  • Loading branch information
mysticfall committed Sep 22, 2021
1 parent a481179 commit c3898fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bpystubgen/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import bpystubgen
from bpystubgen import nodes, patches
from bpystubgen.nodes import Class, Import, Module
from bpystubgen.nodes import Class, DocString, Import, Module


class Task:
Expand Down Expand Up @@ -141,7 +141,7 @@ def parse(self, settings: Values, env: BuildEnvironment) -> Optional[document]:

if not doctree:
doctree = new_document("", settings=settings)
doctree += patches.apply(self.name, Module(name=self.name), settings, env)
doctree += patches.apply(self.full_name, Module(name=self.full_name), settings, env)

self.doctree = doctree

Expand Down

0 comments on commit c3898fa

Please sign in to comment.