bounding sphere fix #572
@@ -47,7 +47,9 @@ const fileMenuConfig: EditorMenuConfig = {
|
||||
ideType: state.ideType,
|
||||
geometry: state.objectData?.data,
|
||||
quality: state.objectData?.quality,
|
||||
fileName: project? `${ project.title}.stl` : PullTitleFromFirstLine(state.code || ''),
|
||||
fileName: project
|
||||
? `${project.title}.stl`
|
||||
: PullTitleFromFirstLine(state.code || ''),
|
||||
thunkDispatch,
|
||||
})
|
||||
|
||||
@@ -104,7 +106,11 @@ interface EditorMenuItemConfigBase {
|
||||
callback?: (...a: any[]) => void
|
||||
}
|
||||
export interface EditorMenuItemConfig extends EditorMenuItemConfigBase {
|
||||
Component: React.FC<{config: EditorMenuItemConfigBase, state: State, thunkDispatch: any}>
|
||||
Component: React.FC<{
|
||||
config: EditorMenuItemConfigBase
|
||||
state: State
|
||||
thunkDispatch: any
|
||||
}>
|
||||
}
|
||||
|
||||
export interface EditorMenuConfig {
|
||||
|
||||
@@ -30,6 +30,9 @@ export function Asset({
|
||||
React.useEffect(() => {
|
||||
const getBoundingSphere = () => {
|
||||
if (dataType === 'geometry') {
|
||||
if (!incomingGeo.boundingSphere && incomingGeo.computeBoundingSphere) {
|
||||
incomingGeo.computeBoundingSphere()
|
||||
}
|
||||
return incomingGeo.boundingSphere
|
||||
}
|
||||
const group = new THREE.Group()
|
||||
|
||||
@@ -142,7 +142,7 @@ const ProjectProfile = ({
|
||||
<KeyValue keyName="Updated on">
|
||||
{new Date(project?.updatedAt).toDateString()}
|
||||
</KeyValue>
|
||||
{project.forkedFrom && (
|
||||
{project?.forkedFrom && (
|
||||
<KeyValue keyName="Forked from">
|
||||
<Link
|
||||
className="pink-link"
|
||||
|
||||
Reference in New Issue
Block a user