mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
[CSM] Add camera API (#5609)
* [CSM] Add camera API roper rebase & squash * Address nerzhul's review
This commit is contained in:
@@ -33,6 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "util/numeric.h"
|
||||
#include "constants.h"
|
||||
#include "fontengine.h"
|
||||
#include "script/scripting_client.h"
|
||||
|
||||
#define CAMERA_OFFSET_STEP 200
|
||||
|
||||
@@ -125,6 +126,10 @@ bool Camera::successfullyCreated(std::string &error_message)
|
||||
} else {
|
||||
error_message.clear();
|
||||
}
|
||||
|
||||
if (g_settings->getBool("enable_client_modding")) {
|
||||
m_client->getScript()->on_camera_ready(this);
|
||||
}
|
||||
return error_message.empty();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user