File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -665,6 +665,8 @@ class PythonWrapper {
665
665
// check if manual file exists
666
666
this . hasOverride = fse . existsSync ( this . pyDestPath ) ;
667
667
668
+ this . isCustom = CUSTOM_CLASSES . indexOf ( modulePath ) !== - 1 ;
669
+
668
670
this . hasParameters = false ;
669
671
670
672
this . config = getClassConfig ( this . className ) ;
@@ -692,6 +694,7 @@ class PythonWrapper {
692
694
properties : this . properties ,
693
695
dependencies : this . dependencies ,
694
696
hasOverride : this . hasOverride ,
697
+ isCustom : this . isCustom ,
695
698
} ;
696
699
697
700
// Render template
@@ -815,6 +818,10 @@ class PythonWrapper {
815
818
816
819
processDocsUrl ( ) {
817
820
821
+ if ( this . isCustom ) {
822
+ this . docsUrl = null ;
823
+ }
824
+
818
825
const refTokens = this . modulePath . split ( pathSep ) ;
819
826
820
827
// strip extension off filename
Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ class {{ className }}({{ superClass.className }}):
23
23
24
24
Autogenerated by { { generatorScriptName } }
25
25
Date: { { now } }
26
+ { {#if isCustom} }
27
+ This class is a custom class for pythreejs.
28
+ { {else } }
26
29
See { { threejs_docs_url } }
30
+ { {/if } }
27
31
"""
28
32
29
33
{ {#unless constructor.hasParameters} }
You can’t perform that action at this time.
0 commit comments