完善客户端功能并同步差距文档
This commit is contained in:
@@ -265,6 +265,7 @@ void Metin2Model::_set_lod(int n) {
|
||||
if (mi->get_mesh().is_valid() && material_mode != String("standard")) {
|
||||
lod_prev_mi = memnew(MeshInstance3D);
|
||||
lod_prev_mi->set_name("LodGhost");
|
||||
lod_prev_mi->set_layer_mask(1u << 1);
|
||||
lod_prev_mi->set_mesh(mi->get_mesh());
|
||||
add_child(lod_prev_mi);
|
||||
lod_prev_mi->set_transform(mi->get_transform());
|
||||
@@ -457,6 +458,7 @@ void Metin2Model::reload() {
|
||||
if (mesh->get_surface_count() > 0) {
|
||||
mi = memnew(MeshInstance3D);
|
||||
mi->set_name("MeshInstance3D");
|
||||
mi->set_layer_mask(1u << 1); // CharacterLight visibility layer.
|
||||
mi->set_mesh(mesh);
|
||||
add_child(mi);
|
||||
mi->set_owner(get_owner() ? get_owner() : this);
|
||||
@@ -722,6 +724,7 @@ void Metin2Model::_load_attach(const String &gr2_rel, const String &bone_name,
|
||||
|
||||
slot_mi = memnew(MeshInstance3D);
|
||||
slot_mi->set_name(node_name);
|
||||
slot_mi->set_layer_mask(1u << 1); // equipment follows the character light.
|
||||
slot_mi->set_mesh(wmesh);
|
||||
add_child(slot_mi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user