mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-27 02:45:28 -04:00
Refactor Track Class To Instantiate On Track Load (#587)
* Initial Commit * First compilation of Registry template * Further changes * wip changes * Impl TrackBrowser and Registry Info * Remove const from TInfo * Prep GetWorld * Name refactor * Refactor gWorldInstance to GetWorld() * wip * Should work now * Data menu work again * Fix editor staying open after program close * Rename LoadLevel to LoadTrackDataFromJson * More changes * Add statue * Add search to content browser using tags * Fix statue pos and register tags * Fix actor loading * Fix delete all bug which deleted cameras * reduce some boiler plate in actor and object * Remove unused rulesets * Search bar for all tabs * fix data screen * fix actor spawning * temp editor fix * Clean up * improve extra mode transformation * fix podium crash * Fix editor clicking * Fix editor clicking 2 * fix extra in custom track * Fix FI for three actors * Fix divide by zero error * Ids managed by Registry * Add scary comment --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com> Co-authored-by: coco875 <pereira.jannin@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ AActor::AActor(SpawnParams params) {
|
||||
|
||||
void AActor::BeginPlay() {
|
||||
// This makes actors clickable in the editor
|
||||
if (CVarGetInteger("gEditorEnabled", false) == true) {
|
||||
if (Editor_IsEnabled()) {
|
||||
if ((nullptr != Model) && (Model[0] != '\0')) {
|
||||
// Prevent collision mesh from being generated extra times.
|
||||
if (Triangles.size() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user