Spaces:
Paused
Paused
Update src/lib/project-fetcher-hoc.jsx
Browse files
src/lib/project-fetcher-hoc.jsx
CHANGED
@@ -114,6 +114,19 @@ const ProjectFetcherHOC = function (WrappedComponent) {
|
|
114 |
this.props.vm.clear();
|
115 |
this.props.vm.stop();
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
let assetPromise;
|
118 |
// In case running in node...
|
119 |
let projectUrl = typeof URLSearchParams === 'undefined' ?
|
@@ -302,4 +315,4 @@ const ProjectFetcherHOC = function (WrappedComponent) {
|
|
302 |
|
303 |
export {
|
304 |
ProjectFetcherHOC as default
|
305 |
-
};
|
|
|
114 |
this.props.vm.clear();
|
115 |
this.props.vm.stop();
|
116 |
|
117 |
+
// pm: clear url params when fetching if the project ID is 'default'
|
118 |
+
if (
|
119 |
+
(loadingState === "FETCHING_NEW_DEFAULT") && (projectId == 0 || projectId === null)
|
120 |
+
) {
|
121 |
+
this.props.vm.setFramerate(30);
|
122 |
+
this.props.vm.setRuntimeOptions({
|
123 |
+
dangerousOptimizations: false,
|
124 |
+
disableOffscreenRendering: false,
|
125 |
+
fencing: true,
|
126 |
+
maxClones: 300,
|
127 |
+
miscLimits: true
|
128 |
+
});
|
129 |
+
}
|
130 |
let assetPromise;
|
131 |
// In case running in node...
|
132 |
let projectUrl = typeof URLSearchParams === 'undefined' ?
|
|
|
315 |
|
316 |
export {
|
317 |
ProjectFetcherHOC as default
|
318 |
+
};
|